package imotech.ejb.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

@Entity
@DiscriminatorValue("F")

@NamedQueries({
	@NamedQuery(name="findTodosFuncionarios", query="select f from Funcionario f")
})
public class Funcionario extends Pessoa implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3142601070929044106L;
	private int cargaHoraria;
	
	private Collection<Imovel> imovel = new ArrayList<Imovel>();
	
	public Funcionario() {
		// TODO Auto-generated constructor stub
	}

	
	public int getCargaHoraria() {
		return cargaHoraria;
	}
	public void setCargaHoraria(int cargaHoraria) {
		this.cargaHoraria = cargaHoraria;
	}


	@OneToMany(mappedBy="corretor")
	public Collection<Imovel> getImovel() {
		return imovel;
	}
	public void setImovel(Collection<Imovel> imovel) {
		this.imovel = imovel;
	}
	
	
	
}
